import { createRouter, createWebHistory } from "vue-router";

const routes = [
	{
		path: "/",
		name: "index",
		component: () => import("@/views/index/index.vue"),
		children: [
			{
				path: "/home",
				name: "home",
				component: () => import("@/views/home/home.vue"),
			},
			{
				path: "/keys",
				name: "keys",
				component: () => import("@/views/keys/keys.vue"),
			},
			{
				path: "/chats",
				name: "chats",
				component: () => import("@/views/chats/chats.vue"),
			},
			{
				path: "/explore",
				name: "explore",
				component: () => import("@/views/explore/explore.vue"),
			},
			{
				path: "/airdrop",
				name: "airdrop",
				component: () => import("@/views/airdrop/airdrop.vue"),
			},
			{
				path: "/profile",
				name: "profile",
				component: () => import("@/views/profile/profile.vue"),
			},
			{
				path: "/account",
				name: "account",
				component: () => import("@/views/account/account.vue"),
			},
			{
				path: '/sidekick-info',
				name: 'sidekick-info',
				component: () => import('@/views/sidekick-info/sidekick-info.vue')
			},
			{
				path: '/message',
				name: 'message',
				component: () => import('@/views/message/message.vue')
			}
		],
	},
];

const router = createRouter({
	history: createWebHistory(process.env.BASE_URL),
	routes,
});

export default router;
